Skip to content

Conversation

melonora
Copy link
Collaborator

@melonora melonora commented Jun 10, 2025

closes #37

This PR adds the capability back of using either lz4 or zstd compression at various compression levels. It is exposed through a compressor argument in write and write_element that takes as value a dict with key being the compression name and the value being the compression level. By default if compression is specified bytes will be reordered for more efficient compression SHUFFLE in blosc.

@melonora
Copy link
Collaborator Author

perhaps still some refactoring to clean up the code a bit, but first want opinions on the exposed parameter.

@melonora melonora mentioned this pull request Jun 10, 2025
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

❌ Patch coverage is 93.50649% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.36%. Comparing base (3f01688) to head (93c6270).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/spatialdata/_io/io_raster.py 93.54% 4 Missing ⚠️
src/spatialdata/_io/_utils.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #944      +/-   ##
==========================================
- Coverage   92.36%   92.36%   -0.01%     
==========================================
  Files          48       48              
  Lines        7416     7450      +34     
==========================================
+ Hits         6850     6881      +31     
- Misses        566      569       +3     
Files with missing lines Coverage Δ
src/spatialdata/_core/spatialdata.py 91.65% <100.00%> (+0.01%) ⬆️
src/spatialdata/_io/_utils.py 88.46% <90.00%> (+0.07%) ⬆️
src/spatialdata/_io/io_raster.py 95.97% <93.54%> (-0.88%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-enable compression
1 participant